package com.aaa.service.impl;

import com.aaa.dao.ProductsDao;
import com.aaa.entity.Products;
import com.aaa.entity.Productstype;
import com.aaa.service.ProductsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductsServiceImpl extends ServiceImpl<ProductsDao, Products> implements ProductsService {
    @Resource
    ProductsDao productsDao;
    @Override
    public List<Products> selectAll(String pname) {
        return productsDao.selectAll(pname);
    }

    @Override
    public List<Productstype> selectAllType() {
        return productsDao.selectAllType();
    }
}
